package com.lee.mapper;

import com.lee.entity.User;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by lee on 2017/3/15.
 */
public interface UserMapper {
    void save(User user);

    boolean update(User user);

    boolean delete(int id);

    User findById(int id);

    List<User> findAll();
}
